<div class="floatL leftBlock" style="min-width: 550px;">
    <?php if ($last) : ?>    
        <h3>Новые компании</h3><br />
	<?php foreach ($last as $company) : ?>
	    <div class="recordRow">
		<img src="<?php echo $company->getLogo(); ?>" alt="<?php echo $company->getDbData('title'); ?>" class="floatL userPic"/>
		<a href="<?php echo CHtml::normalizeUrl($this->createUrl('company/view', array('id' => $company->getId(), 'url' => $company->getDbData('url')))); ?>" class="recordTitle"><b><?php echo $company->getDbData('title'); ?></b></a><br />
		<?php echo CTruncate::trunc($company->getDbData('info')); ?>
		<br />
		<div class="clear padTop10"></div>
		<div class="rowInfo overHidden">
		    <div class="floatL">
			<i>Вид дейтельности: <?php echo $activities[$company->getDbData('activity_id')]; ?></i>
		    </div>
		    <div class="floatR">
			<div class="floatL margRight10"><b class="<?php if ($company->getDbData('karma') >= 0) : ?>green<?php else : ?>red<?php endif;?>"><i class="icon-star"></i> <?php echo $company->getDbData('karma'); ?></b></div>
		    </div>
		</div>
	    </div>
	    <hr/>
	<?php endforeach; ?>
    <?php endif; ?>
    <div class="clear"></div>
    <div class="padTop10"></div>
    <?php if ($itemCount > Yii::app()->params['perPage']) : ?>
        <div class="floatR"><a href="<?php echo $this->createUrl('company/list'); ?>" class="btn">посмотреть остальные</a></div>
    <?php endif; ?>
</div>
<div class="rightBlock margLeft50 floatL">
    <?php if ($best) : ?>    
        <h3>Лучшие компании</h3><br />
	<?php foreach ($best as $company) : ?>
	    <div class="recordRow">
		<img src="<?php echo $company->getLogo(); ?>" alt="<?php echo $company->getDbData('title'); ?>" class="floatL userPic"/>
		<a href="<?php echo CHtml::normalizeUrl($this->createUrl('company/view', array('id' => $company->getId(), 'url' => $company->getDbData('url')))); ?>" class="recordTitle"><b><?php echo $company->getDbData('title'); ?></b></a><br />
		<?php echo CTruncate::trunc($company->getDbData('info')); ?>
		<br />
		<div class="clear padTop10"></div>
		<div class="rowInfo overHidden">
		    <div class="floatL">
			<i>Вид дейтельности: <?php echo $activities[$company->getDbData('activity_id')]; ?></i>
		    </div>
		    <div class="floatR">
			<div class="floatL margRight10"><b class="<?php if ($company->getDbData('karma') >= 0) : ?>green<?php else : ?>red<?php endif;?>"><i class="icon-star"></i> <?php echo $company->getDbData('karma'); ?></b></div>
		    </div>
		</div>
	    </div>
	    <hr/>
	<?php endforeach; ?>
    <?php endif; ?>
    <div class="clear"></div>
    <div class="padTop10"></div>
    <?php if ($itemCount > Yii::app()->params['perPage']) : ?>
        <div class="floatR"><a href="<?php echo $this->createUrl('company/list/rating'); ?>" class="btn">посмотреть остальные</a></div>
    <?php endif; ?>
</div>